package cn.likole.oj.bean;

import org.nutz.dao.entity.annotation.Column;
import org.nutz.dao.entity.annotation.Default;
import org.nutz.dao.entity.annotation.Id;
import org.nutz.dao.entity.annotation.Table;

import java.util.Date;

/**
 * Created by likole on 8/4/18.
 * 公告
 */
@Table("announcement")
public class Announcement {

    /**
     * 公告id
     */
    @Id
    private int announcementId;

    /**
     * 是否显示
     */
    @Column
    @Default("1")
    private boolean display;

    /**
     * 发布时间
     */
    @Column
    private Date inDate;

    /**
     * 失效时间
     */
    @Column
    private Date expireDate;

    /**
     * 内容
     */
    @Column
    private String content;

    public int getAnnouncementId() {
        return announcementId;
    }

    public void setAnnouncementId(int announcementId) {
        this.announcementId = announcementId;
    }

    public boolean isDisplay() {
        return display;
    }

    public void setDisplay(boolean display) {
        this.display = display;
    }

    public Date getInDate() {
        return inDate;
    }

    public void setInDate(Date inDate) {
        this.inDate = inDate;
    }

    public Date getExpireDate() {
        return expireDate;
    }

    public void setExpireDate(Date expireDate) {
        this.expireDate = expireDate;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }
}
